<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Login Page</title>
	<link rel="stylesheet" href="jquery-ui-1.8.7.custom/development-bundle/themes/base/jquery.ui.all.css">
	<link rel="stylesheet" href="style.css">
	<script src="jquery-ui-1.8.7.custom/development-bundle/jquery-1.4.4.js"></script>
	<script src="jquery-ui-1.8.7.custom/development-bundle/ui/jquery.ui.core.js"></script>
	<script src="jquery-ui-1.8.7.custom/development-bundle/ui/jquery.ui.widget.js"></script>
	<script src="jquery-ui-1.8.7.custom/development-bundle/ui/jquery.ui.accordion.js"></script>
	<link rel="stylesheet" href="jquery-ui-1.8.7.custom/development-bundle/demos/demos.css">
	
	<script>
	$(function() {
		$( "#accordion" ).accordion({
			autoHeight: false,
			navigation: true,
			collapsible: true
		});
	});
	</script>
	<script>
	function OnSubmitForm(){
		if(document.pressed == "Login"){
			if(document.adminlogin.username.value!=""&&document.adminlogin.password.value!=""){
				document.adminlogin.action ="loginPageProcess.php";
				return true;
			}else{
				alert("Fill out all fields!");
				return false;
			}
		}
	}
	</script>
</head>
<body>

<div class="demo">
	
	<div id="header">
		<h1>ACCI DORM Management System</h1>
	</div>

	<div id="accordion">
		<h3><a href="#section1">Administrator's Login</a></h3>
		<form name="adminlogin" method="post" onSubmit="return OnSubmitForm()">
		<div>
			<ul>
			<li>Username<br/><input type="text" name="username"/></li>
			<li>Password<br/><input type="password" name="password"/></li>
			</ul>
			<input type="submit" value="Login" onClick="document.pressed=this.value"/>
		</div>
		</form>
	</div>

</div><!-- End demo -->

</body>
</html>
